﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace MVC_CSSBundle
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
        protected void Session_Start(object sender, EventArgs e)
        {

            Response.Cookies["MyCookie"].Value = Session.SessionID.ToString() + "houwencheng";
            //HttpCookie cookie = new HttpCookie("MyCook");
            //Response.Cookies["ASP.NET_SessionId1"].Domain = ".local.com";
        }
    }
}
